﻿package chapter_04;

public class Hui_4_1_Exa_01_Penguin extends Hui_4_1_Exa_01_Pet{
	private String sex;
	
	public Hui_4_1_Exa_01_Penguin(String name,String sex){
		super(name);
		this.sex =sex;
	}
	
	public String getSex(){
		return sex;
	}
	
	public void print(){
		System.out.println("我的性别是："+sex);
	}
}
